package com.nutricia.common.dal.persistant;

import java.util.List;

/**
 * 菜单和权限对象
 *
 * @author: huangsheng
 * @date: 2017 /10/24
 */
public class MenuAndPermission {

    /**
     * 菜单id
     */
    private String menuId;

    /**
     * 菜单名称
     */
    private String menuName;

    /**
     * 菜单所有权限
     */
    private List<SystemPermission> systemPermissions;

    /**
     * 子菜单集合
     */
    private List<MenuAndPermission> subMenus;

    /**
     * Gets menu id.
     *
     * @return the menu id
     */
    public String getMenuId() {
        return menuId;
    }

    /**
     * Sets menu id.
     *
     * @param menuId the menu id
     */
    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    /**
     * Gets menu name.
     *
     * @return the menu name
     */
    public String getMenuName() {
        return menuName;
    }

    /**
     * Sets menu name.
     *
     * @param menuName the menu name
     */
    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    /**
     * Gets system permissions.
     *
     * @return the system permissions
     */
    public List<SystemPermission> getSystemPermissions() {
        return systemPermissions;
    }

    /**
     * Sets system permissions.
     *
     * @param systemPermissions the system permissions
     */
    public void setSystemPermissions(List<SystemPermission> systemPermissions) {
        this.systemPermissions = systemPermissions;
    }

    /**
     * Gets sub menus.
     *
     * @return the sub menus
     */
    public List<MenuAndPermission> getSubMenus() {
        return subMenus;
    }

    /**
     * Sets sub menus.
     *
     * @param subMenus the sub menus
     */
    public void setSubMenus(List<MenuAndPermission> subMenus) {
        this.subMenus = subMenus;
    }
}
